package _02System类;

import java.util.Arrays;
import java.util.Date;

public class DemoSystem {
    public static void main(String[] args) {
        //获取毫秒值
        long l = System.currentTimeMillis();
        System.out.println(l);
        System.out.println(new Date(l));

        //数组拷贝
        int[] nums = {1,2,3,4};
        int[] newnums=new int[4];
        System.arraycopy(nums,0,newnums,0,4);
        System.out.println(Arrays.toString(newnums));


        int[] arr = {1,2,3,4,5};
        int[] arr2 = new int[10];
        System.arraycopy(arr,0,arr2,2,5);
        System.out.println(Arrays.toString(arr2));


        //终止当前运行的虚拟机
        System.exit(1);

    }
}
